import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OldageListRoutingModule } from './oldage-list-routing.module';
import { NotRunningComponent } from './not-running/not-running.component';
import { RunningComponent } from './running/running.component';
import { StopComponent } from './stop/stop.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../../assets/angularx-flatpickr';
import { AppPaginationModule } from 'app/widgets/pagination';
import { AreaDataCnModule } from "../../../widgets/area-data-cn/area-data-cn.module";

export function flatpickrFactory() {
    return flatpickr;
}

@NgModule({
    imports: [
        CommonModule,
        OldageListRoutingModule,
        FormsModule,
        AppPaginationModule,
        AreaDataCnModule,
        FlatpickrModule.forRoot({
            provide: FLATPICKR,
            useFactory: flatpickrFactory
        })
    ],
    declarations: [NotRunningComponent, RunningComponent, StopComponent]
})
export class OldageListModule { }
